tools/xenstore: simplify and rename check_event_node()
authorJuergen Gross <jgross@suse.com>
Thu, 11 Jun 2020 14:12:40 +0000 (16:12 +0200)
committerHans van Kranenburg <hans@knorrie.org>
Tue, 15 Dec 2020 11:28:46 +0000 (12:28 +0100)
commit82bfaf295647e5f670f78d9f9aad4a1d1268710b
tree8fb6c7d800b216f2a489975fe0278243d19cf8dc
parentc9c5a2cde8f551031d551a1da4a485ee1dffb418
tools/xenstore: simplify and rename check_event_node()

There is no path which allows to call check_event_node() without a
event name. So don't let the result depend on the name being NULL and
add an assert() covering that case.

Rename the function to check_special_event() to better match the
semantics.

This is part of XSA-115.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Paul Durrant <paul@xen.org>
tools/xenstore/xenstored_watch.c